{ config, pkgs, ... }:

{
    programs.helix = {
        enable = true;
        defaultEditor = true;
        settings = {
            theme = "onedark";
            editor = {
                line-number = "relative";
                bufferline = "multiple";
                color-modes = true;
                statusline = {
                    left = [
                        "mode"
                        "spinner"
                    ];
                    center = [ "file-name" ];
                    right = [
                        "diagnostics"
                        "selections"
                        "position"
                        "file-encoding"
                        "file-line-ending"
                        "file-type"
                    ];
                    mode = {
                        normal = "NORMAL";
                        insert = "INSERT";
                        select = "SELECT";
                    };
                };
                lsp = {
                    display-messages = true;
                    display-inlay-hints = true;
                };
                cursor-shape = {
                    insert = "bar";
                    select = "hidden";
                };
                indent-guides = {
                    render = true;
                    character = "╎";
                    skip-levels = 1;
                };
            };
        };
    };
}